<%@ page contentType="text/html;charset=utf-8" %>
<%@ page import="org.jadestudio.dsdown.entity.ManageGamePublishCompany" %>
<%
				String mode=(String)request.getAttribute("flag");
				String url="";
				String title="";
				ManageGamePublishCompany manageGamePublishCompany;
				if(mode!=null && !mode.equals("")){
					if(mode.equals("add")){
						title="发行厂商新增";
						url="gameManage.do?pm=publishCompanyAdd";
					}else if(mode.equals("modify")){
						title="发行厂商修改";
						url="gameManage.do?pm=publishCompanyModify";
					}
				}
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form action="" method="post" name="companyForm" id="companyForm">
<input type="hidden" name="addedExit" value="${addedExit}">
<input type="hidden" name="game_publish_company_id" value="${manageGamePublishCompanyMap.game_publish_company_id}">
<script>
function readyToSubmit(){
	document.getElementById("companyForm").action="<%=url%>";
	//TODO:需要验证下参数
	document.getElementById("companyForm").submit();
}
</script>
<style type="text/css">
input {
	border: 1px #ccc solid;
}
</style>
<div class="content-box-header">
					<h3><%=title %></h3>
					<div class="clear"></div>
				</div> 
                <div class="content-box-content">
               	  	<table>
               	  		<thead>
                  			<tr>
                  				<td style="width:70px">厂商名称 &nbsp;</td>
                  				<td style="width:280px"><input checkSelf="true" type="text" name="game_publish_company" value="${manageGamePublishCompanyMap.game_publish_company}" size="24" maxlength="24"></td>
                  				<td checkSelfNotice="true"></td>
                  			</tr>
	                 		<tr>
		                   		<td colspan="3">&nbsp;</td>
		                    </tr>
                  			<tr>
                  				<td>地区&nbsp; </td>
                  				<td><select  name="game_publish_zone" value="${manageGamePublishCompanyMap.game_publish_zone}">
                  					<option value="1" ${manageGamePublishCompanyMap.game_publish_zone eq '1'?'selected':''} >日本</option>
                  					<option value="2" ${manageGamePublishCompanyMap.game_publish_zone eq '2'?'selected':''} >韩国</option>
                  					<option value="3" ${manageGamePublishCompanyMap.game_publish_zone eq '3'?'selected':''} >欧美</option>
                  					<option value="4" ${manageGamePublishCompanyMap.game_publish_zone eq '4'?'selected':''} >国内</option>
                  					<option value="5" ${manageGamePublishCompanyMap.game_publish_zone eq '5'?'selected':''} >其他1(预备用)</option>
                  					<option value="6" ${manageGamePublishCompanyMap.game_publish_zone eq '6'?'selected':''} >其他2(预备用)</option>
                  					<option value="7" ${manageGamePublishCompanyMap.game_publish_zone eq '7'?'selected':''} >其他3(预备用)</option>
                  					<option value="8" ${manageGamePublishCompanyMap.game_publish_zone eq '8'?'selected':''} >其他4(预备用)</option>
                  					<option value="9" ${manageGamePublishCompanyMap.game_publish_zone eq '9'?'selected':''} >其他5(预备用)</option>
                  				</select></td>
                  				<td></td>
                  			</tr>
                  			<tr>
		                   		<td colspan="3">&nbsp;</td>
		                    </tr>
                  			<tr>
                  				<td>官方网站&nbsp; </td>
                  				<td><input type="text" checkSelf="true" name="game_publish_url" value="${manageGamePublishCompanyMap.game_publish_url}" size="24" maxlength="24"></td>
                  				<td checkSelfNotice="true"></td>
                  			</tr>
                  			<tr>
		                   		<td colspan="3">&nbsp;</td>
		                    </tr>
		                    <tr>
		                   		<td colspan="3">&nbsp;</td>
		                    </tr>
                  			<tr>
                  			   <td style="text-align: right"><input style="border:solid 1px #CCC;width:100px;" onmousemove=(this.style.background='#57a000') onmouseout=(this.style.background='#FFF') type="button" onclick="readyToSubmit()" value="提交"/></td>
                  			   <td style="text-align: center"><input style="border:solid 1px #CCC;width:100px;" onmousemove=(this.style.background='#57a000') onmouseout=(this.style.background='#FFF') onclick="location.href='gameManage.do?pm=gotoPublishCompanyList'" type="button" value="后退"/></td>
		                  	   <td colspan="2"></td>
		                   </tr>
                  		</thead>
                  	</table>
                </div>
</form>            